package com.ruoyi.system.domain;

import com.spire.pdf.graphics.*;
import org.springframework.stereotype.Component;

import java.awt.*;
@Component
public class PdfDrawObject {
    //创建两种字体
    public static PdfTrueTypeFont largeTitleFont = new PdfTrueTypeFont(new Font("楷体",
            Font.BOLD, 18), true);
    public static PdfTrueTypeFont smallTitleFont = new PdfTrueTypeFont(new Font("楷体",
            Font.PLAIN, 12), true);
    public static PdfTrueTypeFont pinYFont = new PdfTrueTypeFont(new Font("times new roman",
            Font.PLAIN, 12), true);
    public static PdfTrueTypeFont gridFont = new PdfTrueTypeFont(new Font("楷体",
            Font.BOLD, 24), true);


    public static PdfStringFormat format = new PdfStringFormat();
}
